"""
created  by  hzwlxy  at 2018/7/4 10:56
__author__: 西瓜哥
__QQ__ : 120235331
__Note__： 
"""

__author__ = '西瓜哥'

from app.ext import db
from app.models.base import Base


class Permission(Base):
    """
    权限表
    """
    __tablename__ = "permissions"

    name = db.Column(db.String(20), nullable=False, comment="endpoint节点名称", unique=True)
    label = db.Column(db.String(20), nullable=True, comment="权限说明")
    level = db.Column(db.Integer, default=0, comment="排序")
    menu_id = db.Column(db.Integer, default=0, comment="后台菜单ID")


